#ifndef _APPLICATION_H_
#define _APPLICATION_H_

using namespace std;
namespace engine
{

    class Application
    {
    public:
        static Application *getInstance()
        {
            if (nullptr == m_pApplication)
            {
                m_pApplication = new Application();
            }
            return m_pApplication;
        }

        void destory() { delete m_pApplication; } // 删除实例
        void run();

    private:
        static Application *m_pApplication;

        Application()
        {
        }
        ~Application()
        {
        }
    };

}
#endif